package com.cowealth.platform.common.base.vo.result;

import java.io.Serializable;
import java.util.List;

/**
 * 分页请求返回结果
 *
 * @author : skycdm
 * @version : 1.0.0
 * @date : 2021/3/18 17:26
 */
public final class PageResult<T> implements Serializable {

    private List<T> list;

    private Long total;


    public PageResult(List list, Long total) {
        this.list = list;
        this.total = total;
    }

    public PageResult() {
    }

    public List<T> getList() {
        return list;
    }

    public PageResult<T> setList(List<T> list) {
        this.list = list;
        return this;
    }

    public Long getTotal() {
        return total;
    }

    public PageResult<T> setTotal(Long total) {
        this.total = total;
        return this;
    }

}
